<template>
  <div>
    <h1 @click="$router.push({ path: '/layout/classify', query: { id: 1 } })">
      home
    </h1>

    <button @click="onClick">按钮</button>
  </div>
</template>

<script>
export default {
  methods: {
    onClick() {
      this.$router.push({ name: 'person', params: { id: 1 } })
    },
  },
}
</script>

<style></style>
